package com.litingfeng.mapper;

import com.litingfeng.bean.Department;
import com.litingfeng.bean.Employee;

import java.util.List;

public interface DepartmentMapper {
    int deleteByPrimaryKey(Integer dId);

    int insert(Department row);



    Department selectByPrimaryKey(Integer dId);

    List<Department> selectAll();

    int updateByPrimaryKey(Department row);

    List<Employee> selectEmpByDepartName(String dName);

    List<Department> selectAllDepartAndEmp();

    Department selectDepartAndEmpById(int dId);
}